#ifndef CITY_H
#define CITY_H

#include "ForceEntity.h"

struct CityEntry:public EntityEntry
{
    int defense;
    int hp;
};

class sgCity:public sgForceEntity
{
public:
    sgCity( int type = 0 );
    ~sgCity( );
    virtual bool Initialize( );
    CityEntry &GetEntry( );
    sgCity *Clone( );
    virtual void ProcessMessage( sgMessage *msg );
    virtual void Serialize( CSerialize& s );
    static sgObject *Creator( );
    static bool m_creatorRegisted;
protected:
    int m_type;
    
    CityEntry m_entry;
};

#endif